package com.wiscamp.ninechapters.problems.infrastructure.po.spider;

import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;

@Data
@Entity
@Table(name = "problems_edulastic")
public class ProblemsEdulastic implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "problem_id", nullable = false)
    private Long problemId;

    @Column(name = "question")
    private String question;

    @Column(name = "difficulty")
    private Integer difficulty;

    @Column(name = "problem_content")
    private String problemContent;

    @Column(name = "answer_content")
    private String answerContent;

    @Column(name = "skills_remark")
    private String skillsRemark;

    @Column(name = "master_skills")
    private String masterSkills;

    @Column(name = "grades")
    private String grades;

    @Column(name = "standards")
    private String standards;

    @Column(name = "item_id", nullable = false)
    private Long itemId = 0L;

    @Column(name = "is_processed", nullable = false)
    private Boolean processed = Boolean.FALSE;

    @Column(name = "need_process", nullable = false)
    private Integer needProcess = 0;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", insertable = false, nullable = false)
    private Long id;


}